home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / UIFlow 1.0.1 / UIFlow Source / CFDFront / UIFlow.r < prev    next >
Encoding:
Text File  |  1993-01-15  |  2.3 KB  |  116 lines  |  [TEXT/MPS ]

  1. // ================================================================
  2. #ifndef __TYPES.R__
  3.     #include "Types.r"                    // SIZE, WIND, STR  , MBAR etc.
  4. #endif
  5.  
  6. #ifndef __MacAppTypes__
  7.     #include "MacAppTypes.r"            // cmnu, etc.
  8. #endif
  9.  
  10.  
  11. #if qDebug
  12.     include "Debug.rsrc";                // always include
  13. #endif
  14.  
  15. include "MacApp.rsrc";
  16. include "UIFlow.rsrc";
  17. include "UIFlow" 'CODE';
  18.  
  19. //    cmnu menu Id numbers
  20. //    Options Menu elements
  21. #define    cExport                2000
  22.  
  23. #define    cOptPrint            2001
  24. #define    cOptRelax            2002
  25. #define cOptSolution        2003
  26. #define    cOptFlow            2004
  27.  
  28. #define cRApp                2009
  29. #define cRemote                2005
  30. #define cLocal                2006
  31.  
  32. //    Grid Menu Elements
  33. #define cGridOn                2007
  34. #define cGridFine            2008
  35.  
  36. // Menu Resources
  37. include"Defaults.rsrc"'cmnu'(mApple);
  38. include"Defaults.rsrc"'cmnu'(mEdit);
  39.  
  40. resource 'cmnu' (2)
  41.     {
  42.     2,
  43.     textMenuProc,
  44.     0x7FFFFFFF,
  45.     enabled,
  46.     "File",
  47.         {
  48.         "New",noIcon,"N",noMark,plain,cNew;
  49.         "Open",noIcon,"O",noMark,plain,cOpen;
  50.         "-",noIcon,noKey,noMark,plain,noCommand;
  51.         "Close",noIcon,"W",noMark,plain,cClose;
  52.         "Save",noIcon,"S",noMark,plain,cSave;
  53.         "Save As...",noIcon,noKey,noMark,plain,cSaveAs;
  54.         "-",noIcon,noKey,noMark,plain,noCommand;
  55.         "Export Input Deck",noIcon,"E",noMark,plain,cExport;
  56.         "-",noIcon,noKey,noMark,plain,noCommand;
  57.         "Page Setup...",noIcon,noKey,noMark,plain,cPageSetup;
  58.         "Print One",noIcon,noKey,noMark,plain,cPrintOne;
  59.         "Print",noIcon,"P",noMark,plain,cPrint;
  60.         "-",noIcon,noKey,noMark,plain,noCommand;
  61.         "Quit",noIcon,"Q",noMark,plain,cQuit;
  62.         }
  63.     };
  64.  
  65. resource 'cmnu' (4)
  66.     {
  67.     4,
  68.     textMenuProc,
  69.     0x7FFFFFFF,
  70.     enabled,
  71.     "Simulation",
  72.         {
  73.         "Set Remote Application",noIcon,noKey,noMark,plain,cRApp;
  74.         "Remote",noIcon,"R",noMark,plain,cRemote;
  75.         "Local",noIcon,"L",noMark,plain,cLocal;
  76.         }
  77.     };
  78.  
  79. resource 'cmnu' (5)
  80.     {
  81.     6,
  82.     textMenuProc,
  83.     allEnabled,
  84.     enabled,
  85.     "Options",
  86.         {
  87.         "Print Variables...",noIcon,noKey,noMark,plain,cOptPrint;
  88.         "Relax Factors...",noIcon,noKey,noMark,plain,cOptRelax;
  89.         "-",noIcon,noKey,noMark,plain,noCommand;
  90.         "Flow Parameters...",noIcon,noKey,noMark,plain,cOptFlow;
  91.         "Solution Parameters...",noIcon,noKey,noMark,plain,cOptSolution;
  92.         }
  93.     };
  94.     
  95. resource 'cmnu' (6)
  96.     {
  97.     7,
  98.     textMenuProc,
  99.     allEnabled,
  100.     enabled,
  101.     "Grid",
  102.         {
  103.         "Hide Grid",noIcon,"G",noMark,plain,cGridOn;
  104.         }
  105.     };
  106.     
  107. resource 'MBAR' (kMBarDisplayed,
  108.     #if qNames
  109.         "MultiFlow",
  110.     #endif
  111.         purgeable)
  112.         {
  113.             {mApple;2;mEdit;4;5;6;}
  114.         };
  115.  
  116.